#ifndef STUDENT_H
#define STUDENT_H
#include "person.hpp"
#include <string>

class Student : public Person {
   public:
    friend std::istream& read_student(std::istream &is, Student &p);
    friend std::ostream& print_student(std::ostream &os, Student &p);

    Student() = default;
    Student(std::string id) : Person(), id_(id){};

    std::string id() const { return id_; };
    void set_id(std::string id) { id_ = id; };
    virtual ~Student(){};

   private:
    std::string id_;
};

#endif /* STUDENT_H */
